﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Linq;
using System.Net.NetworkInformation;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace 美妆产品管理系统
{
    public partial class cgdd : Form
    {
        public cgdd()
        {
            InitializeComponent();
        }
       
        private void label1_Click(object sender, EventArgs e)
        {

        }

        private void label5_Click(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            DB.GetCn();
            string str = "insert into caigou values('" + Login.username + "','" + DateTime.Today + "','" + txtid.Text + "','"
                + txtname.Text + "','" + txtsl.Text + "','" + txtmuch.Text + "','"
               + "','未审核')" ;
            ShopCart.profit = 0;
            DB.sqlEx(str);
            MessageBox.Show("已提交");
            this.Close();
        }

        private void btnno_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void cgdd_Load(object sender, EventArgs e)
        {
            // TODO: 这行代码将数据加载到表“salesDataSet4.Category”中。您可以根据需要移动或移除它。
            this.categoryTableAdapter.Fill(this.salesDataSet4.Category);

        }
    }
}
